﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="StatusWithCount.cs" company="Spenta Consulting">
//   (c) Copyright 2011
// </copyright>
// <summary>
//   Defines the StatusWithCount type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Spenta.StreetCare.Core.Models
{
    using System.Runtime.Serialization;

    /// <summary>
    /// Defines the StatusWithCount type.
    /// </summary>
    public class StatusWithCount : Status
    {
        /// <summary>
        /// Gets or sets the report count.
        /// </summary>
        /// <value>The report count.</value>
        [DataMember]
        public int ReportCount { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the collection is being retrieved or not.
        /// </summary>
        /// <value>The report count.</value>
        [DataMember]
        public bool IsDirty { get; set; }

        /// <summary>
        /// Sets the status.
        /// </summary>
        /// <value>The status.</value>
        public Status Status
        {
            set
            {
                var status = value;
                StatusID = status.StatusID;
                StatusCustomerID = status.StatusCustomerID;
                StatusTitle = status.StatusTitle;
                StatusImageUrl = status.StatusImageUrl;
                StatusKey = status.StatusKey;
            }
        }
    }
}
